package mylab.starters.mybatis.support.mixedSource;

import com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DataSourceProperty;

import java.util.Map;

public interface TenantDataSourceLoader {

    Map<String, DataSourceProperty> getAll();

    default DataSourceProperty getByPoolName(String dsName) {
        return getAll().get(dsName);
    }

    DataSourceProperty getByTenantId(Long tenantId);
}
